#include "PreCompile.hpp"
#include "TestProjects.hpp"

namespace BuildNG
{
  void TestProjects::test_simple()
  {
    Glib::RefPtr<BuildNG::Project> proj = 
      BuildNG::Project::load_from_file("TestFiles/SimpleTest.buildng");
    bool build_res = proj->build("out/",BuildNG::StdErrorListener::create());
    assert(build_res == true);
  }

  void TestProjects::test_ignore_header()
  {
    Glib::RefPtr<BuildNG::Project> proj = 
      BuildNG::Project::load_from_file("TestFiles/IgnoreHeader.buildng");
    bool build_res = proj->build("out/",BuildNG::StdErrorListener::create());
    assert(build_res == true);
  }
  
  void TestProjects::test_pkg_reference()
  {
    Glib::RefPtr<BuildNG::Project> proj =
      BuildNG::Project::load_from_file("TestFiles/PkgReferenceTest.buildng");
    bool build_res = proj->build("out/",BuildNG::StdErrorListener::create());
    assert(build_res == true);
  }
}
